package exception.exception01;

public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println("程序开始了");


        try {
            String s1 = "null";
            System.out.println(s1.charAt(0));
            //return;
        } catch (NullPointerException e) {
            System.out.println("空指针异常");
        } /*finally {
            System.out.println("出问题了,还不解决一下?");
        }*/
        System.out.println("程序结束了");

    }
}
